package controllers;

import java.util.List;

import models.Book;
import bl.LibraryFacade;
import bl.LibraryFacadeImpl;
import bl.PaginatedResult;
import play.mvc.Controller;

public class BookSearch extends Controller {

	public static void index(){
		render();
	}
	
	public static void search(String query){
		LibraryFacade library = new LibraryFacadeImpl();//TODO di 
		PaginatedResult<Book> books = library.search(query, 1, 1000);
		render(query, books);
	}
}
